Trees | Indices | Toggle frames |
---|
Collection of texture atlases.
TextureBin maintains a collection of texture atlases, and creates new ones as necessary to accommodate images added to the bin.
__init__(self,
texture_width=256,
texture_height=256)
Create a texture bin for holding atlases of the given size.
|
|
TextureRegion |
add(self,
img)
Add an image into this texture bin.
|
Add an image into this texture bin.
This method calls TextureAtlas.add for the first atlas that has room for the image.
AllocatorException is raised if the image exceeds the dimensions of texture_width and texture_height.
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Thu Dec 31 17:58:19 2009 | http://epydoc.sourceforge.net |